package sjms.construction.composite.e1;

/**
 * @ClassName:
 * @Description:
 * @Author fcb
 * @Date 2020/6/1 14:09
 */
public abstract class Component {

    protected String name;

    public Component(String name) {
        this.name = name;
    }

    public abstract void operation();

    public boolean addChil(Component component){
        throw new UnsupportedOperationException();
    }

    public boolean removeChil(Component component){
        throw new UnsupportedOperationException();
    }

    public Component getChil(int index){
        throw new UnsupportedOperationException();
    }

}
